<?php include "../public/header.php";?>
<?php include "../public/header_edit.php";?>
<link rel="stylesheet" type="text/css" href="/static/component/laytp/module/cityPicker/city-picker.css">

<body id="optPage">
<form class="layui-form layui-form-pane" id="commentForm">
    <div class="page-title"><div class="page-title-con"><span>开标结果</span><div class="move_title"></div><?php include "../public/sub.php";?></div></div>
    <div class="main-container">


        <div class="block-generic">
            <div class="layui-form-item ">
                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">开标结果</label>
                        <div class="layui-input-block">
                            <select id="state" name="state" lay-filter="state"></select>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</form>
<script>
    var param_ids = getQueryVariable('ids') || '';
    console.log(param_ids)

    layui.use(['laytp', 'form'], function() {
        var form = layui.form, layer = layui.layer;
        render_input_attr();

        facade.ajax({type: 'get', url: ask_bid_kaidai}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;

                var kai_guo_str = '<option value="0">请选择</option>';
                var kai_guo = res.data.kai_guo;
                for (var key in kai_guo){
                    kai_guo_str += '<option value="'+key+'">'+kai_guo[key]+'</option>';
                }
                $("#state").html(kai_guo_str);



                render_date();
                render_from();
            }
        });


        form.on('submit(add)', function(data){

            var validRes = $("#commentForm").valid();

            if(!validRes){return false;}


            data.field.ids = param_ids;
            facade.ajax({url: ask_bid_kaidai, data:data.field}).done(function(res){
                if (res.code === 2000) {
                    dataPostTimeOut();
                }
            });

            return false;
        });

    });




</script>
</body>
</html>
